package com.qyl.homework;

import com.qyl.mainclass.Graphics;

public class Round extends Graphics {

    //调用父类的有参构造方法
    public Round(double lg,double wide,double high,double radious){
        super(lg,wide,high,radious);
    }

    //调用父类无参构造器
    public Round(){
        super();
    }


    //调用父类绘图方法
    public void drawing1(){
        super.drawing();
    }

    //计算圆形面积的方法
    public void area(){
        double a = getRadious() * 3.14 * 3.14;
        System.out.println("圆形的面积是：" + a);
    }
}
